package com.woniuxy.mapper;

import com.woniuxy.entity.po.stationPile.Pile;

import java.util.List;

/**
 * @author Quan
 * @description 针对表【pile(充电桩表)】的数据库操作Mapper
 * @createDate 2025-03-27 15:28:02
 * @Entity com.woniuxy.entity.po.stationPile.Pile
 */
public interface PileMapper {
    Integer hasActivePiles(Long stationId);

    Integer delByStationId(Long stationId);

    Integer batchHasActivePiles(List<Long> stationIds);

    List<Pile> queryAll();

    /**
     * 根据充电站id查询关联着的非禁用充电桩信息
     * @param stationId
     * @return
     */
    List<Pile> queryByStationIdWithBinding(Long stationId);

    void cancelRelationByPileId(Long pileId);

    List<Pile> queryByStationIdWithUnbinding(Long stationId);

    void addRelationByPileId(Long pileId);
}




